package com.bang.daybreak.menu.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.bang.daybreak.common.framework.model.convert.Convert;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author wangdejian
 * @since 2019-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_menu")
public class SysMenu extends Convert {

private static final long serialVersionUID=1L;

    /**
     * 菜单主键id
     */
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    /**
     * 菜单编码(用来控制菜单权限)
     */
    private String code;

    /**
     * 父菜单编码，一级菜单编码父id为0
     */
    private String pMenuId;

    /**
     * url
     */
    private String url;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 菜单类型（menu目录 folder菜单 button按钮）
     */
    private String menuType;

    /**
     * 图标
     */
    private String icon;

    /**
     * 菜单状态,菜单显隐状态(1:正常，0：隐藏)
     */
    private Integer enabled;

    /**
     * 描述
     */
    private String description;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 当前登录用户编号
     */
    private String createUser;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新用户编号
     */
    private String updateUser;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


    public static final String MENU_ID = "menu_id";

    public static final String CODE = "code";

    public static final String P_MENU_ID = "p_menu_id";

    public static final String URL = "url";

    public static final String MENU_NAME = "menu_name";

    public static final String MENU_TYPE = "menu_type";

    public static final String ICON = "icon";

    public static final String ENABLED = "enabled";

    public static final String DESCRIPTION = "description";

    public static final String SORT = "sort";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
